{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Excerpt from the New York Times\n",
    "http://www.nytimes.com/2014/09/20/nyregion/friskings-ebb-but-still-hang-over-brooklyn-lives.html?_r=0\n",
    "\n",
    "In the housing projects of eastern Brooklyn, some young men no longer clasp hands when greeting each other, they say, fearful that their grasp might be mistaken for a drug deal and invite a search by the police. Friends heading to the bodega sometimes split up, worried that walking in a group will attract police attention.\n",
    "\n",
    "They are subtle yet telling changes, lasting effects of years of police stops of young men, mostly in black and Latino neighborhoods. Often the stops were without legal justification, a federal court found last year.\n",
    "\n",
    "Today, “stop-and-frisk” as New York City knew it is over, undone by a torrent of public outrage and political pressure, and by legal challenges that culminated in the ruling that the Police Department’s drastically increased use of the street stops of black and Hispanic men over the preceding decade was unconstitutional."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "This is a quick example of converting data in to time stamps that pandas can understand and manipulate.\n",
    "\n",
    "# Time Stamps"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "\n",
    "# the file must be placed in the same directory as where you are running iPython\n",
    "# read in from csv file into a pandas data frame\n",
    "df = pd.read_csv('data/SQF 2012.csv')\n",
    "df.sex += 1 # make inline with the rest of the nominals in the datset"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year</th>\n",
       "      <th>datestop</th>\n",
       "      <th>timestop</th>\n",
       "      <th>city</th>\n",
       "      <th>sex</th>\n",
       "      <th>race</th>\n",
       "      <th>age</th>\n",
       "      <th>height</th>\n",
       "      <th>weight</th>\n",
       "      <th>frisked</th>\n",
       "      <th>searched</th>\n",
       "      <th>arstmade</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2012</td>\n",
       "      <td>1012012</td>\n",
       "      <td>115</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>20</td>\n",
       "      <td>69</td>\n",
       "      <td>155</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2012</td>\n",
       "      <td>1012012</td>\n",
       "      <td>310</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>18</td>\n",
       "      <td>67</td>\n",
       "      <td>175</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2012</td>\n",
       "      <td>1012012</td>\n",
       "      <td>2000</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>19</td>\n",
       "      <td>69</td>\n",
       "      <td>180</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2012</td>\n",
       "      <td>1022012</td>\n",
       "      <td>1245</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>37</td>\n",
       "      <td>65</td>\n",
       "      <td>210</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2012</td>\n",
       "      <td>1042012</td>\n",
       "      <td>2220</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>21</td>\n",
       "      <td>67</td>\n",
       "      <td>170</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   year  datestop  timestop  city    ...     weight  frisked  searched  arstmade\n",
       "0  2012   1012012       115   3.0    ...        155        1         0         0\n",
       "1  2012   1012012       310   1.0    ...        175        0         0         0\n",
       "2  2012   1012012      2000   2.0    ...        180        0         0         0\n",
       "3  2012   1022012      1245   2.0    ...        210        0         0         0\n",
       "4  2012   1042012      2220   2.0    ...        170        0         0         0\n",
       "\n",
       "[5 rows x 12 columns]"
      ]
     },
     "execution_count": 45,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# let's take a look at the dataset (the csv I am using has a reduced number of columns) \n",
    "pd.options.display.max_columns = 0\n",
    "df.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year</th>\n",
       "      <th>datestop</th>\n",
       "      <th>timestop</th>\n",
       "      <th>city</th>\n",
       "      <th>sex</th>\n",
       "      <th>race</th>\n",
       "      <th>age</th>\n",
       "      <th>height</th>\n",
       "      <th>weight</th>\n",
       "      <th>frisked</th>\n",
       "      <th>searched</th>\n",
       "      <th>arstmade</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>count</th>\n",
       "      <td>532911.0</td>\n",
       "      <td>5.329110e+05</td>\n",
       "      <td>532911.000000</td>\n",
       "      <td>532906.000000</td>\n",
       "      <td>525127.000000</td>\n",
       "      <td>519050.000000</td>\n",
       "      <td>532911.000000</td>\n",
       "      <td>532911.000000</td>\n",
       "      <td>532911.000000</td>\n",
       "      <td>532911.000000</td>\n",
       "      <td>532911.000000</td>\n",
       "      <td>532911.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>mean</th>\n",
       "      <td>2012.0</td>\n",
       "      <td>5.563631e+06</td>\n",
       "      <td>1415.161796</td>\n",
       "      <td>2.517707</td>\n",
       "      <td>1.927518</td>\n",
       "      <td>2.011700</td>\n",
       "      <td>28.769539</td>\n",
       "      <td>68.600125</td>\n",
       "      <td>169.284830</td>\n",
       "      <td>0.557774</td>\n",
       "      <td>0.083031</td>\n",
       "      <td>0.060639</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>std</th>\n",
       "      <td>0.0</td>\n",
       "      <td>3.413338e+06</td>\n",
       "      <td>737.003276</td>\n",
       "      <td>1.146186</td>\n",
       "      <td>0.259284</td>\n",
       "      <td>1.245066</td>\n",
       "      <td>24.006996</td>\n",
       "      <td>3.184658</td>\n",
       "      <td>36.838004</td>\n",
       "      <td>0.496651</td>\n",
       "      <td>0.275929</td>\n",
       "      <td>0.238667</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>min</th>\n",
       "      <td>2012.0</td>\n",
       "      <td>1.012012e+06</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>36.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25%</th>\n",
       "      <td>2012.0</td>\n",
       "      <td>2.292012e+06</td>\n",
       "      <td>1002.000000</td>\n",
       "      <td>2.000000</td>\n",
       "      <td>2.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>19.000000</td>\n",
       "      <td>67.000000</td>\n",
       "      <td>150.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>50%</th>\n",
       "      <td>2012.0</td>\n",
       "      <td>5.052012e+06</td>\n",
       "      <td>1615.000000</td>\n",
       "      <td>2.000000</td>\n",
       "      <td>2.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>24.000000</td>\n",
       "      <td>69.000000</td>\n",
       "      <td>165.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>75%</th>\n",
       "      <td>2012.0</td>\n",
       "      <td>8.252012e+06</td>\n",
       "      <td>2030.000000</td>\n",
       "      <td>3.000000</td>\n",
       "      <td>2.000000</td>\n",
       "      <td>3.000000</td>\n",
       "      <td>34.000000</td>\n",
       "      <td>71.000000</td>\n",
       "      <td>180.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.000000</td>\n",
       "      <td>0.000000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>max</th>\n",
       "      <td>2012.0</td>\n",
       "      <td>1.231201e+07</td>\n",
       "      <td>2359.000000</td>\n",
       "      <td>5.000000</td>\n",
       "      <td>2.000000</td>\n",
       "      <td>6.000000</td>\n",
       "      <td>999.000000</td>\n",
       "      <td>95.000000</td>\n",
       "      <td>999.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>1.000000</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "           year      datestop      ...             searched       arstmade\n",
       "count  532911.0  5.329110e+05      ...        532911.000000  532911.000000\n",
       "mean     2012.0  5.563631e+06      ...             0.083031       0.060639\n",
       "std         0.0  3.413338e+06      ...             0.275929       0.238667\n",
       "min      2012.0  1.012012e+06      ...             0.000000       0.000000\n",
       "25%      2012.0  2.292012e+06      ...             0.000000       0.000000\n",
       "50%      2012.0  5.052012e+06      ...             0.000000       0.000000\n",
       "75%      2012.0  8.252012e+06      ...             0.000000       0.000000\n",
       "max      2012.0  1.231201e+07      ...             1.000000       1.000000\n",
       "\n",
       "[8 rows x 12 columns]"
      ]
     },
     "execution_count": 46,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.describe() # display statistitcs from the dataset"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'pandas.core.frame.DataFrame'>\n",
      "RangeIndex: 532911 entries, 0 to 532910\n",
      "Data columns (total 12 columns):\n",
      "year        532911 non-null int64\n",
      "datestop    532911 non-null int64\n",
      "timestop    532911 non-null int64\n",
      "city        532906 non-null float64\n",
      "sex         525127 non-null float64\n",
      "race        519050 non-null float64\n",
      "age         532911 non-null int64\n",
      "height      532911 non-null int64\n",
      "weight      532911 non-null int64\n",
      "frisked     532911 non-null int64\n",
      "searched    532911 non-null int64\n",
      "arstmade    532911 non-null int64\n",
      "dtypes: float64(3), int64(9)\n",
      "memory usage: 48.8 MB\n"
     ]
    }
   ],
   "source": [
    "df.info()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0        2012-10-01\n",
       "1        2012-10-01\n",
       "2        2012-10-01\n",
       "3        2012-10-02\n",
       "4        2012-10-04\n",
       "5        2012-10-05\n",
       "6        2012-10-05\n",
       "7        2012-10-06\n",
       "8        2012-10-06\n",
       "9        2012-10-06\n",
       "10       2012-10-06\n",
       "11       2012-10-06\n",
       "12       2012-10-07\n",
       "13       2012-10-07\n",
       "14       2012-10-07\n",
       "15       2012-10-08\n",
       "16       2012-10-08\n",
       "17       2012-10-08\n",
       "18       2012-10-08\n",
       "19       2012-10-08\n",
       "20       2012-01-10\n",
       "21       2012-01-10\n",
       "22       2012-01-10\n",
       "23       2012-01-10\n",
       "24       2012-11-01\n",
       "25       2012-11-01\n",
       "26       2012-11-01\n",
       "27       2012-11-01\n",
       "28       2012-11-01\n",
       "29       2012-11-01\n",
       "            ...    \n",
       "532881   2012-12-28\n",
       "532882   2012-12-28\n",
       "532883   2012-12-28\n",
       "532884   2012-12-28\n",
       "532885   2012-12-19\n",
       "532886   2012-12-29\n",
       "532887   2012-12-29\n",
       "532888   2012-12-01\n",
       "532889   2012-12-11\n",
       "532890   2012-12-27\n",
       "532891   2012-12-27\n",
       "532892   2012-12-29\n",
       "532893   2012-12-29\n",
       "532894   2012-12-29\n",
       "532895   2012-12-30\n",
       "532896   2012-12-30\n",
       "532897   2012-12-31\n",
       "532898   2012-12-31\n",
       "532899   2012-12-28\n",
       "532900   2012-12-28\n",
       "532901   2012-12-28\n",
       "532902   2012-12-29\n",
       "532903   2012-10-06\n",
       "532904   2012-10-08\n",
       "532905   2012-10-18\n",
       "532906   2012-11-04\n",
       "532907   2012-11-04\n",
       "532908   2012-11-04\n",
       "532909   2012-11-04\n",
       "532910   2012-11-08\n",
       "Name: datestop, dtype: datetime64[ns]"
      ]
     },
     "execution_count": 48,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# convert ot a date time\n",
    "date_as_series = pd.to_datetime(df.datestop.astype(str),format='%m%d%Y')\n",
    "date_as_series"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "DatetimeIndex(['1900-01-01 01:15:00', '1900-01-01 03:10:00',\n",
       "               '1900-01-01 20:00:00', '1900-01-01 12:45:00',\n",
       "               '1900-01-01 22:20:00', '1900-01-01 15:50:00',\n",
       "               '1900-01-01 21:30:00', '1900-01-01 12:30:00',\n",
       "               '1900-01-01 15:10:00', '1900-01-01 16:30:00',\n",
       "               ...\n",
       "               '1900-01-01 23:10:00', '1900-01-01 20:20:00',\n",
       "               '1900-01-01 21:45:00', '1900-01-01 22:50:00',\n",
       "               '1900-01-01 23:30:00', '1900-01-01 19:30:00',\n",
       "               '1900-01-01 19:30:00', '1900-01-01 23:05:00',\n",
       "               '1900-01-01 23:05:00', '1900-01-01 21:13:00'],\n",
       "              dtype='datetime64[ns]', length=532911, freq=None)"
      ]
     },
     "execution_count": 49,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# convert to a string that is representable with hours and minutes\n",
    "timeofday_str = [\"%2.2d:%2.2d\"%(float(d)/100, float(d)%100) for d in df.timestop]\n",
    "\n",
    "# convert that string using the datetime function\n",
    "timeofday = pd.to_datetime(timeofday_str,format='%H:%M')\n",
    "timeofday"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "DatetimeIndex(['2012-10-01 01:15:00', '2012-10-01 03:10:00',\n",
       "               '2012-10-01 20:00:00', '2012-10-02 12:45:00',\n",
       "               '2012-10-04 22:20:00', '2012-10-05 15:50:00',\n",
       "               '2012-10-05 21:30:00', '2012-10-06 12:30:00',\n",
       "               '2012-10-06 15:10:00', '2012-10-06 16:30:00',\n",
       "               ...\n",
       "               '2012-12-28 23:10:00', '2012-12-29 20:20:00',\n",
       "               '2012-10-06 21:45:00', '2012-10-08 22:50:00',\n",
       "               '2012-10-18 23:30:00', '2012-11-04 19:30:00',\n",
       "               '2012-11-04 19:30:00', '2012-11-04 23:05:00',\n",
       "               '2012-11-04 23:05:00', '2012-11-08 21:13:00'],\n",
       "              dtype='datetime64[ns]', length=532911, freq=None)"
      ]
     },
     "execution_count": 50,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "timeofday_str = [\"%s %2.2d:%2.2d\"%(dat,float(hr)/100, float(hr)%100) for hr,dat in zip(df.timestop,df.datestop.astype(str))]\n",
    "alldates = pd.to_datetime(timeofday_str,format='%m%d%Y %H:%M')\n",
    "alldates"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Some of the code in this notebook below is manipulated from the examples of how to use the DateTimeIndex in pandas, except manipulated for use with the current data.\n",
    "- http://pandas.pydata.org/pandas-docs/stable/timeseries.html"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "# now lets replace the index of the pandas dataframe with the time stamp\n",
    "df.index = alldates"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year</th>\n",
       "      <th>datestop</th>\n",
       "      <th>timestop</th>\n",
       "      <th>city</th>\n",
       "      <th>sex</th>\n",
       "      <th>race</th>\n",
       "      <th>age</th>\n",
       "      <th>height</th>\n",
       "      <th>weight</th>\n",
       "      <th>frisked</th>\n",
       "      <th>searched</th>\n",
       "      <th>arstmade</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2012-06-02 15:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>1500</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>56</td>\n",
       "      <td>69</td>\n",
       "      <td>165</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 19:10:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>1910</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>6.0</td>\n",
       "      <td>24</td>\n",
       "      <td>66</td>\n",
       "      <td>150</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-01 19:38:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6012012</td>\n",
       "      <td>1938</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>22</td>\n",
       "      <td>70</td>\n",
       "      <td>146</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 17:35:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>1735</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>21</td>\n",
       "      <td>65</td>\n",
       "      <td>150</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 17:35:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>1735</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>22</td>\n",
       "      <td>64</td>\n",
       "      <td>120</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 17:35:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>1735</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>22</td>\n",
       "      <td>62</td>\n",
       "      <td>120</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 05:49:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>549</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>24</td>\n",
       "      <td>71</td>\n",
       "      <td>200</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 05:49:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>549</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>23</td>\n",
       "      <td>71</td>\n",
       "      <td>200</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 05:49:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>549</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>24</td>\n",
       "      <td>71</td>\n",
       "      <td>140</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 05:49:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>549</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>25</td>\n",
       "      <td>69</td>\n",
       "      <td>140</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 08:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>830</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>42</td>\n",
       "      <td>71</td>\n",
       "      <td>180</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-03 20:08:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6032012</td>\n",
       "      <td>2008</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>49</td>\n",
       "      <td>68</td>\n",
       "      <td>180</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-03 23:20:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6032012</td>\n",
       "      <td>2320</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>29</td>\n",
       "      <td>73</td>\n",
       "      <td>175</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-04 03:50:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6042012</td>\n",
       "      <td>350</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>30</td>\n",
       "      <td>72</td>\n",
       "      <td>160</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 20:35:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>2035</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>51</td>\n",
       "      <td>71</td>\n",
       "      <td>280</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-05 17:01:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6052012</td>\n",
       "      <td>1701</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>18</td>\n",
       "      <td>65</td>\n",
       "      <td>145</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-05 20:46:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6052012</td>\n",
       "      <td>2046</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>33</td>\n",
       "      <td>67</td>\n",
       "      <td>150</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-03 13:10:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6032012</td>\n",
       "      <td>1310</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>51</td>\n",
       "      <td>69</td>\n",
       "      <td>150</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 20:36:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>2036</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>41</td>\n",
       "      <td>69</td>\n",
       "      <td>168</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 21:50:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>2150</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>24</td>\n",
       "      <td>69</td>\n",
       "      <td>167</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-01 14:54:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6012012</td>\n",
       "      <td>1454</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>25</td>\n",
       "      <td>72</td>\n",
       "      <td>160</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 20:54:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>2054</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>42</td>\n",
       "      <td>71</td>\n",
       "      <td>210</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 05:18:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>518</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>50</td>\n",
       "      <td>68</td>\n",
       "      <td>170</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 03:24:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>324</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>44</td>\n",
       "      <td>67</td>\n",
       "      <td>180</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 02:06:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>206</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>51</td>\n",
       "      <td>70</td>\n",
       "      <td>175</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 01:19:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>119</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>45</td>\n",
       "      <td>67</td>\n",
       "      <td>160</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-06 03:32:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6062012</td>\n",
       "      <td>332</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>30</td>\n",
       "      <td>68</td>\n",
       "      <td>180</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 22:07:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>2207</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>28</td>\n",
       "      <td>68</td>\n",
       "      <td>140</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-02 21:37:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6022012</td>\n",
       "      <td>2137</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>46</td>\n",
       "      <td>70</td>\n",
       "      <td>160</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-03 01:12:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6032012</td>\n",
       "      <td>112</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>46</td>\n",
       "      <td>73</td>\n",
       "      <td>220</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-22 14:39:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6222012</td>\n",
       "      <td>1439</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>26</td>\n",
       "      <td>66</td>\n",
       "      <td>150</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-27 19:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6272012</td>\n",
       "      <td>1930</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>35</td>\n",
       "      <td>67</td>\n",
       "      <td>210</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-28 22:15:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6282012</td>\n",
       "      <td>2215</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>22</td>\n",
       "      <td>65</td>\n",
       "      <td>110</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-28 22:15:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6282012</td>\n",
       "      <td>2215</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>24</td>\n",
       "      <td>62</td>\n",
       "      <td>110</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-28 01:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6282012</td>\n",
       "      <td>100</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>18</td>\n",
       "      <td>69</td>\n",
       "      <td>160</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-28 01:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6282012</td>\n",
       "      <td>100</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>18</td>\n",
       "      <td>68</td>\n",
       "      <td>155</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-30 23:15:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6302012</td>\n",
       "      <td>2315</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>21</td>\n",
       "      <td>72</td>\n",
       "      <td>195</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-26 12:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6262012</td>\n",
       "      <td>1230</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>24</td>\n",
       "      <td>66</td>\n",
       "      <td>140</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-29 22:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6292012</td>\n",
       "      <td>2230</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>16</td>\n",
       "      <td>65</td>\n",
       "      <td>150</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-29 22:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6292012</td>\n",
       "      <td>2230</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>16</td>\n",
       "      <td>65</td>\n",
       "      <td>145</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-06 21:40:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6062012</td>\n",
       "      <td>2140</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>23</td>\n",
       "      <td>65</td>\n",
       "      <td>170</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-27 00:35:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6272012</td>\n",
       "      <td>35</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>24</td>\n",
       "      <td>68</td>\n",
       "      <td>155</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-30 06:50:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6302012</td>\n",
       "      <td>650</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>18</td>\n",
       "      <td>68</td>\n",
       "      <td>200</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-30 23:45:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6302012</td>\n",
       "      <td>2345</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>23</td>\n",
       "      <td>71</td>\n",
       "      <td>180</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-30 22:40:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6302012</td>\n",
       "      <td>2240</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>17</td>\n",
       "      <td>67</td>\n",
       "      <td>190</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-30 22:40:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6302012</td>\n",
       "      <td>2240</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>19</td>\n",
       "      <td>70</td>\n",
       "      <td>140</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-28 22:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6282012</td>\n",
       "      <td>2200</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>18</td>\n",
       "      <td>67</td>\n",
       "      <td>125</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-28 22:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6282012</td>\n",
       "      <td>2200</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>17</td>\n",
       "      <td>65</td>\n",
       "      <td>140</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-28 22:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6282012</td>\n",
       "      <td>2200</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>17</td>\n",
       "      <td>69</td>\n",
       "      <td>170</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-25 22:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6252012</td>\n",
       "      <td>2200</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>16</td>\n",
       "      <td>74</td>\n",
       "      <td>175</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-28 21:45:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6282012</td>\n",
       "      <td>2145</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>999</td>\n",
       "      <td>66</td>\n",
       "      <td>170</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-28 21:45:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6282012</td>\n",
       "      <td>2145</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>54</td>\n",
       "      <td>70</td>\n",
       "      <td>185</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-28 20:50:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6282012</td>\n",
       "      <td>2050</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>19</td>\n",
       "      <td>72</td>\n",
       "      <td>200</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-27 20:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6272012</td>\n",
       "      <td>2000</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>40</td>\n",
       "      <td>66</td>\n",
       "      <td>200</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-28 22:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6282012</td>\n",
       "      <td>2200</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>15</td>\n",
       "      <td>69</td>\n",
       "      <td>165</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-28 22:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6282012</td>\n",
       "      <td>2200</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>18</td>\n",
       "      <td>68</td>\n",
       "      <td>142</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-30 00:11:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6302012</td>\n",
       "      <td>11</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>18</td>\n",
       "      <td>75</td>\n",
       "      <td>170</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-20 00:11:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6202012</td>\n",
       "      <td>11</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>18</td>\n",
       "      <td>73</td>\n",
       "      <td>190</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-30 00:37:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6302012</td>\n",
       "      <td>37</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>42</td>\n",
       "      <td>69</td>\n",
       "      <td>170</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-06-26 23:20:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>6262012</td>\n",
       "      <td>2320</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>27</td>\n",
       "      <td>61</td>\n",
       "      <td>200</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>32116 rows × 12 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                     year  datestop    ...     searched  arstmade\n",
       "2012-06-02 15:00:00  2012   6022012    ...            1         1\n",
       "2012-06-02 19:10:00  2012   6022012    ...            0         0\n",
       "2012-06-01 19:38:00  2012   6012012    ...            0         0\n",
       "2012-06-02 17:35:00  2012   6022012    ...            0         0\n",
       "2012-06-02 17:35:00  2012   6022012    ...            0         0\n",
       "2012-06-02 17:35:00  2012   6022012    ...            0         0\n",
       "2012-06-02 05:49:00  2012   6022012    ...            0         0\n",
       "2012-06-02 05:49:00  2012   6022012    ...            0         0\n",
       "2012-06-02 05:49:00  2012   6022012    ...            0         0\n",
       "2012-06-02 05:49:00  2012   6022012    ...            0         0\n",
       "2012-06-02 08:30:00  2012   6022012    ...            0         0\n",
       "2012-06-03 20:08:00  2012   6032012    ...            0         0\n",
       "2012-06-03 23:20:00  2012   6032012    ...            0         0\n",
       "2012-06-04 03:50:00  2012   6042012    ...            0         0\n",
       "2012-06-02 20:35:00  2012   6022012    ...            0         0\n",
       "2012-06-05 17:01:00  2012   6052012    ...            0         0\n",
       "2012-06-05 20:46:00  2012   6052012    ...            0         0\n",
       "2012-06-03 13:10:00  2012   6032012    ...            0         0\n",
       "2012-06-02 20:36:00  2012   6022012    ...            0         0\n",
       "2012-06-02 21:50:00  2012   6022012    ...            0         0\n",
       "2012-06-01 14:54:00  2012   6012012    ...            0         1\n",
       "2012-06-02 20:54:00  2012   6022012    ...            0         0\n",
       "2012-06-02 05:18:00  2012   6022012    ...            0         0\n",
       "2012-06-02 03:24:00  2012   6022012    ...            0         0\n",
       "2012-06-02 02:06:00  2012   6022012    ...            0         0\n",
       "2012-06-02 01:19:00  2012   6022012    ...            0         0\n",
       "2012-06-06 03:32:00  2012   6062012    ...            0         0\n",
       "2012-06-02 22:07:00  2012   6022012    ...            0         0\n",
       "2012-06-02 21:37:00  2012   6022012    ...            0         0\n",
       "2012-06-03 01:12:00  2012   6032012    ...            0         0\n",
       "...                   ...       ...    ...          ...       ...\n",
       "2012-06-22 14:39:00  2012   6222012    ...            0         0\n",
       "2012-06-27 19:30:00  2012   6272012    ...            0         0\n",
       "2012-06-28 22:15:00  2012   6282012    ...            0         0\n",
       "2012-06-28 22:15:00  2012   6282012    ...            0         0\n",
       "2012-06-28 01:00:00  2012   6282012    ...            0         0\n",
       "2012-06-28 01:00:00  2012   6282012    ...            0         0\n",
       "2012-06-30 23:15:00  2012   6302012    ...            0         0\n",
       "2012-06-26 12:30:00  2012   6262012    ...            0         0\n",
       "2012-06-29 22:30:00  2012   6292012    ...            0         0\n",
       "2012-06-29 22:30:00  2012   6292012    ...            0         0\n",
       "2012-06-06 21:40:00  2012   6062012    ...            0         0\n",
       "2012-06-27 00:35:00  2012   6272012    ...            0         0\n",
       "2012-06-30 06:50:00  2012   6302012    ...            0         0\n",
       "2012-06-30 23:45:00  2012   6302012    ...            0         0\n",
       "2012-06-30 22:40:00  2012   6302012    ...            0         0\n",
       "2012-06-30 22:40:00  2012   6302012    ...            0         0\n",
       "2012-06-28 22:00:00  2012   6282012    ...            0         0\n",
       "2012-06-28 22:00:00  2012   6282012    ...            0         0\n",
       "2012-06-28 22:00:00  2012   6282012    ...            0         0\n",
       "2012-06-25 22:00:00  2012   6252012    ...            0         0\n",
       "2012-06-28 21:45:00  2012   6282012    ...            0         0\n",
       "2012-06-28 21:45:00  2012   6282012    ...            0         0\n",
       "2012-06-28 20:50:00  2012   6282012    ...            0         0\n",
       "2012-06-27 20:00:00  2012   6272012    ...            0         0\n",
       "2012-06-28 22:00:00  2012   6282012    ...            0         0\n",
       "2012-06-28 22:00:00  2012   6282012    ...            0         0\n",
       "2012-06-30 00:11:00  2012   6302012    ...            0         0\n",
       "2012-06-20 00:11:00  2012   6202012    ...            0         0\n",
       "2012-06-30 00:37:00  2012   6302012    ...            0         0\n",
       "2012-06-26 23:20:00  2012   6262012    ...            0         0\n",
       "\n",
       "[32116 rows x 12 columns]"
      ]
     },
     "execution_count": 52,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# with the timestamp as an index, you can do all sorts of nifty, accelrated operations\n",
    "df['2012-6']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year</th>\n",
       "      <th>datestop</th>\n",
       "      <th>timestop</th>\n",
       "      <th>city</th>\n",
       "      <th>sex</th>\n",
       "      <th>race</th>\n",
       "      <th>age</th>\n",
       "      <th>height</th>\n",
       "      <th>weight</th>\n",
       "      <th>frisked</th>\n",
       "      <th>searched</th>\n",
       "      <th>arstmade</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2012-04-01 15:48:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>1548</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>20</td>\n",
       "      <td>64</td>\n",
       "      <td>130</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 19:02:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>1902</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>22</td>\n",
       "      <td>72</td>\n",
       "      <td>240</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 19:02:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>1902</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>22</td>\n",
       "      <td>72</td>\n",
       "      <td>200</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 00:45:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>45</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>31</td>\n",
       "      <td>64</td>\n",
       "      <td>150</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 00:45:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>45</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>37</td>\n",
       "      <td>67</td>\n",
       "      <td>170</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 15:55:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>1555</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>32</td>\n",
       "      <td>70</td>\n",
       "      <td>205</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 15:55:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>1555</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>35</td>\n",
       "      <td>68</td>\n",
       "      <td>130</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 08:35:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>835</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>47</td>\n",
       "      <td>73</td>\n",
       "      <td>165</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 12:20:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>1220</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>24</td>\n",
       "      <td>73</td>\n",
       "      <td>160</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 11:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>1130</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>33</td>\n",
       "      <td>71</td>\n",
       "      <td>180</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 16:45:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>1645</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>25</td>\n",
       "      <td>73</td>\n",
       "      <td>170</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 15:45:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>1545</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>22</td>\n",
       "      <td>70</td>\n",
       "      <td>155</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 15:27:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>1527</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>30</td>\n",
       "      <td>69</td>\n",
       "      <td>165</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 14:35:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>1435</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>20</td>\n",
       "      <td>70</td>\n",
       "      <td>160</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 18:07:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>1807</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>45</td>\n",
       "      <td>70</td>\n",
       "      <td>180</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 15:50:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>1550</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>39</td>\n",
       "      <td>76</td>\n",
       "      <td>170</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 02:20:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>220</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>55</td>\n",
       "      <td>72</td>\n",
       "      <td>170</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 12:15:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>1215</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>53</td>\n",
       "      <td>67</td>\n",
       "      <td>190</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 12:15:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>1215</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>47</td>\n",
       "      <td>69</td>\n",
       "      <td>200</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 17:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>1700</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>11</td>\n",
       "      <td>65</td>\n",
       "      <td>140</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 17:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>1700</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>12</td>\n",
       "      <td>66</td>\n",
       "      <td>140</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 14:06:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>1406</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>36</td>\n",
       "      <td>70</td>\n",
       "      <td>200</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 14:25:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>1425</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>33</td>\n",
       "      <td>73</td>\n",
       "      <td>230</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 00:55:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>55</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>23</td>\n",
       "      <td>75</td>\n",
       "      <td>180</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 00:55:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>55</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>28</td>\n",
       "      <td>68</td>\n",
       "      <td>180</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 00:40:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>40</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>52</td>\n",
       "      <td>74</td>\n",
       "      <td>220</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 03:05:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>305</td>\n",
       "      <td>1.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>24</td>\n",
       "      <td>72</td>\n",
       "      <td>195</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 01:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>100</td>\n",
       "      <td>1.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1.0</td>\n",
       "      <td>20</td>\n",
       "      <td>75</td>\n",
       "      <td>195</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 03:05:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>305</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>23</td>\n",
       "      <td>63</td>\n",
       "      <td>125</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 23:59:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>2359</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>38</td>\n",
       "      <td>72</td>\n",
       "      <td>185</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 16:15:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>1615</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>21</td>\n",
       "      <td>65</td>\n",
       "      <td>140</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 16:10:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>1610</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>57</td>\n",
       "      <td>67</td>\n",
       "      <td>230</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 21:10:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>2110</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>20</td>\n",
       "      <td>70</td>\n",
       "      <td>150</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 16:16:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>1616</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>18</td>\n",
       "      <td>65</td>\n",
       "      <td>110</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 00:10:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>10</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>24</td>\n",
       "      <td>70</td>\n",
       "      <td>180</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 01:25:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>125</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>22</td>\n",
       "      <td>74</td>\n",
       "      <td>210</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 00:40:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>40</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>22</td>\n",
       "      <td>71</td>\n",
       "      <td>160</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 01:20:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>120</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>22</td>\n",
       "      <td>65</td>\n",
       "      <td>140</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 01:20:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>120</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>19</td>\n",
       "      <td>66</td>\n",
       "      <td>140</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 08:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>830</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>14</td>\n",
       "      <td>64</td>\n",
       "      <td>120</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 08:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>830</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>14</td>\n",
       "      <td>67</td>\n",
       "      <td>140</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 22:20:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>2220</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>17</td>\n",
       "      <td>62</td>\n",
       "      <td>180</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 00:10:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>10</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>30</td>\n",
       "      <td>70</td>\n",
       "      <td>120</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 22:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>2200</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>41</td>\n",
       "      <td>65</td>\n",
       "      <td>170</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 22:20:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>2220</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>19</td>\n",
       "      <td>72</td>\n",
       "      <td>180</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 22:20:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>2220</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>19</td>\n",
       "      <td>71</td>\n",
       "      <td>185</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 12:12:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>1212</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>24</td>\n",
       "      <td>72</td>\n",
       "      <td>210</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 21:33:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>2133</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>49</td>\n",
       "      <td>69</td>\n",
       "      <td>200</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 22:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>2230</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>36</td>\n",
       "      <td>65</td>\n",
       "      <td>110</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 01:05:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>105</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>27</td>\n",
       "      <td>65</td>\n",
       "      <td>165</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 02:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>230</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>21</td>\n",
       "      <td>72</td>\n",
       "      <td>180</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 02:10:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>210</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>22</td>\n",
       "      <td>70</td>\n",
       "      <td>170</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 17:25:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>1725</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>17</td>\n",
       "      <td>66</td>\n",
       "      <td>140</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 17:25:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>1725</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>17</td>\n",
       "      <td>67</td>\n",
       "      <td>150</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 00:25:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>25</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>19</td>\n",
       "      <td>60</td>\n",
       "      <td>999</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 01:15:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>115</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>5.0</td>\n",
       "      <td>41</td>\n",
       "      <td>63</td>\n",
       "      <td>170</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 02:25:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>225</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>20</td>\n",
       "      <td>67</td>\n",
       "      <td>180</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-02 15:53:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4022012</td>\n",
       "      <td>1553</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>23</td>\n",
       "      <td>70</td>\n",
       "      <td>160</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 17:25:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>1725</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>18</td>\n",
       "      <td>66</td>\n",
       "      <td>120</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-04-01 17:25:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>4012012</td>\n",
       "      <td>1725</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>18</td>\n",
       "      <td>66</td>\n",
       "      <td>125</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>3115 rows × 12 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                     year  datestop    ...     searched  arstmade\n",
       "2012-04-01 15:48:00  2012   4012012    ...            0         0\n",
       "2012-04-01 19:02:00  2012   4012012    ...            0         0\n",
       "2012-04-01 19:02:00  2012   4012012    ...            0         1\n",
       "2012-04-01 00:45:00  2012   4012012    ...            0         0\n",
       "2012-04-01 00:45:00  2012   4012012    ...            0         0\n",
       "2012-04-01 15:55:00  2012   4012012    ...            0         0\n",
       "2012-04-01 15:55:00  2012   4012012    ...            0         0\n",
       "2012-04-02 08:35:00  2012   4022012    ...            0         0\n",
       "2012-04-02 12:20:00  2012   4022012    ...            0         0\n",
       "2012-04-02 11:30:00  2012   4022012    ...            0         0\n",
       "2012-04-01 16:45:00  2012   4012012    ...            0         0\n",
       "2012-04-01 15:45:00  2012   4012012    ...            0         0\n",
       "2012-04-02 15:27:00  2012   4022012    ...            0         0\n",
       "2012-04-02 14:35:00  2012   4022012    ...            0         0\n",
       "2012-04-02 18:07:00  2012   4022012    ...            0         0\n",
       "2012-04-01 15:50:00  2012   4012012    ...            0         0\n",
       "2012-04-02 02:20:00  2012   4022012    ...            0         0\n",
       "2012-04-02 12:15:00  2012   4022012    ...            0         0\n",
       "2012-04-02 12:15:00  2012   4022012    ...            0         0\n",
       "2012-04-02 17:00:00  2012   4022012    ...            0         0\n",
       "2012-04-02 17:00:00  2012   4022012    ...            1         1\n",
       "2012-04-02 14:06:00  2012   4022012    ...            0         0\n",
       "2012-04-02 14:25:00  2012   4022012    ...            0         1\n",
       "2012-04-01 00:55:00  2012   4012012    ...            0         0\n",
       "2012-04-01 00:55:00  2012   4012012    ...            0         0\n",
       "2012-04-01 00:40:00  2012   4012012    ...            1         0\n",
       "2012-04-01 03:05:00  2012   4012012    ...            0         0\n",
       "2012-04-01 01:00:00  2012   4012012    ...            1         0\n",
       "2012-04-01 03:05:00  2012   4012012    ...            0         0\n",
       "2012-04-01 23:59:00  2012   4012012    ...            0         0\n",
       "...                   ...       ...    ...          ...       ...\n",
       "2012-04-01 16:15:00  2012   4012012    ...            0         0\n",
       "2012-04-01 16:10:00  2012   4012012    ...            0         0\n",
       "2012-04-02 21:10:00  2012   4022012    ...            0         0\n",
       "2012-04-02 16:16:00  2012   4022012    ...            0         0\n",
       "2012-04-01 00:10:00  2012   4012012    ...            0         0\n",
       "2012-04-02 01:25:00  2012   4022012    ...            0         0\n",
       "2012-04-01 00:40:00  2012   4012012    ...            0         0\n",
       "2012-04-01 01:20:00  2012   4012012    ...            0         0\n",
       "2012-04-01 01:20:00  2012   4012012    ...            0         0\n",
       "2012-04-02 08:30:00  2012   4022012    ...            0         0\n",
       "2012-04-02 08:30:00  2012   4022012    ...            0         0\n",
       "2012-04-02 22:20:00  2012   4022012    ...            0         0\n",
       "2012-04-01 00:10:00  2012   4012012    ...            0         0\n",
       "2012-04-02 22:00:00  2012   4022012    ...            0         0\n",
       "2012-04-02 22:20:00  2012   4022012    ...            0         0\n",
       "2012-04-02 22:20:00  2012   4022012    ...            0         0\n",
       "2012-04-01 12:12:00  2012   4012012    ...            0         0\n",
       "2012-04-01 21:33:00  2012   4012012    ...            0         0\n",
       "2012-04-01 22:30:00  2012   4012012    ...            0         0\n",
       "2012-04-02 01:05:00  2012   4022012    ...            0         0\n",
       "2012-04-01 02:30:00  2012   4012012    ...            0         0\n",
       "2012-04-01 02:10:00  2012   4012012    ...            0         0\n",
       "2012-04-01 17:25:00  2012   4012012    ...            0         0\n",
       "2012-04-01 17:25:00  2012   4012012    ...            0         0\n",
       "2012-04-02 00:25:00  2012   4022012    ...            0         0\n",
       "2012-04-02 01:15:00  2012   4022012    ...            0         0\n",
       "2012-04-02 02:25:00  2012   4022012    ...            0         0\n",
       "2012-04-02 15:53:00  2012   4022012    ...            0         0\n",
       "2012-04-01 17:25:00  2012   4012012    ...            0         0\n",
       "2012-04-01 17:25:00  2012   4012012    ...            0         0\n",
       "\n",
       "[3115 rows x 12 columns]"
      ]
     },
     "execution_count": 53,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df['2012-4-1':'2012-4-2']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "49.117174959871591"
      ]
     },
     "execution_count": 54,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.frisked['2012-4-1':'2012-4-2'].sum() / float(df.frisked['2012-4-1':'2012-4-2'].count()) *100"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>year</th>\n",
       "      <th>datestop</th>\n",
       "      <th>timestop</th>\n",
       "      <th>city</th>\n",
       "      <th>sex</th>\n",
       "      <th>race</th>\n",
       "      <th>age</th>\n",
       "      <th>height</th>\n",
       "      <th>weight</th>\n",
       "      <th>frisked</th>\n",
       "      <th>searched</th>\n",
       "      <th>arstmade</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>2012-11-07 00:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>1172012</td>\n",
       "      <td>30</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>18</td>\n",
       "      <td>72</td>\n",
       "      <td>170</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-11-07 18:50:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>1172012</td>\n",
       "      <td>1850</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>24</td>\n",
       "      <td>66</td>\n",
       "      <td>180</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-11-07 20:50:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>1172012</td>\n",
       "      <td>2050</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>22</td>\n",
       "      <td>72</td>\n",
       "      <td>200</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-11-07 21:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>1172012</td>\n",
       "      <td>2100</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>22</td>\n",
       "      <td>67</td>\n",
       "      <td>160</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-11-07 21:45:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>1172012</td>\n",
       "      <td>2145</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>19</td>\n",
       "      <td>69</td>\n",
       "      <td>160</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-11-07 22:15:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>1172012</td>\n",
       "      <td>2215</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>22</td>\n",
       "      <td>70</td>\n",
       "      <td>170</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-05 13:28:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>1252012</td>\n",
       "      <td>1328</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>17</td>\n",
       "      <td>66</td>\n",
       "      <td>160</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-05 16:50:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>1252012</td>\n",
       "      <td>1650</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>17</td>\n",
       "      <td>72</td>\n",
       "      <td>180</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-05 19:35:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>1252012</td>\n",
       "      <td>1935</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>26</td>\n",
       "      <td>68</td>\n",
       "      <td>160</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-05 20:55:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>1252012</td>\n",
       "      <td>2055</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>14</td>\n",
       "      <td>64</td>\n",
       "      <td>120</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-05 21:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>1252012</td>\n",
       "      <td>2130</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>18</td>\n",
       "      <td>70</td>\n",
       "      <td>170</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-05 23:15:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>1252012</td>\n",
       "      <td>2315</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>22</td>\n",
       "      <td>68</td>\n",
       "      <td>170</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-01 13:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2012012</td>\n",
       "      <td>1300</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>21</td>\n",
       "      <td>69</td>\n",
       "      <td>170</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-01 15:40:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2012012</td>\n",
       "      <td>1540</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>42</td>\n",
       "      <td>72</td>\n",
       "      <td>200</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-01 17:05:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2012012</td>\n",
       "      <td>1705</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>51</td>\n",
       "      <td>68</td>\n",
       "      <td>170</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-01 17:40:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2012012</td>\n",
       "      <td>1740</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>48</td>\n",
       "      <td>65</td>\n",
       "      <td>155</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-01 18:40:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2012012</td>\n",
       "      <td>1840</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>24</td>\n",
       "      <td>67</td>\n",
       "      <td>170</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-01 21:10:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2012012</td>\n",
       "      <td>2110</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>27</td>\n",
       "      <td>70</td>\n",
       "      <td>180</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-08 12:20:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2082012</td>\n",
       "      <td>1220</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>16</td>\n",
       "      <td>67</td>\n",
       "      <td>160</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-08 13:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2082012</td>\n",
       "      <td>1330</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>53</td>\n",
       "      <td>73</td>\n",
       "      <td>180</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-08 15:01:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2082012</td>\n",
       "      <td>1501</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>24</td>\n",
       "      <td>72</td>\n",
       "      <td>250</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-08 16:50:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2082012</td>\n",
       "      <td>1650</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>21</td>\n",
       "      <td>70</td>\n",
       "      <td>180</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-08 19:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2082012</td>\n",
       "      <td>1900</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>22</td>\n",
       "      <td>68</td>\n",
       "      <td>160</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-08 21:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2082012</td>\n",
       "      <td>2100</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>22</td>\n",
       "      <td>69</td>\n",
       "      <td>180</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-15 15:45:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2152012</td>\n",
       "      <td>1545</td>\n",
       "      <td>3.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>25</td>\n",
       "      <td>72</td>\n",
       "      <td>160</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-15 22:41:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2152012</td>\n",
       "      <td>2241</td>\n",
       "      <td>1.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>20</td>\n",
       "      <td>66</td>\n",
       "      <td>170</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-15 23:20:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2152012</td>\n",
       "      <td>2320</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>30</td>\n",
       "      <td>68</td>\n",
       "      <td>160</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-22 10:05:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2222012</td>\n",
       "      <td>1005</td>\n",
       "      <td>4.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>3.0</td>\n",
       "      <td>16</td>\n",
       "      <td>66</td>\n",
       "      <td>160</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-22 14:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2222012</td>\n",
       "      <td>1430</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>20</td>\n",
       "      <td>68</td>\n",
       "      <td>165</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-02-29 23:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>2292012</td>\n",
       "      <td>2300</td>\n",
       "      <td>2.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>22</td>\n",
       "      <td>69</td>\n",
       "      <td>160</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-10-24 21:45:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>10242012</td>\n",
       "      <td>2145</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>27</td>\n",
       "      <td>71</td>\n",
       "      <td>180</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-10-24 00:50:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>10242012</td>\n",
       "      <td>50</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>19</td>\n",
       "      <td>66</td>\n",
       "      <td>210</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-11-07 10:25:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>11072012</td>\n",
       "      <td>1025</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>54</td>\n",
       "      <td>71</td>\n",
       "      <td>180</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-11-07 10:25:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>11072012</td>\n",
       "      <td>1025</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>18</td>\n",
       "      <td>70</td>\n",
       "      <td>150</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-10-17 20:35:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>10172012</td>\n",
       "      <td>2035</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>29</td>\n",
       "      <td>68</td>\n",
       "      <td>170</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-10-17 22:45:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>10172012</td>\n",
       "      <td>2245</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>34</td>\n",
       "      <td>69</td>\n",
       "      <td>165</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-11-14 01:20:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>11142012</td>\n",
       "      <td>120</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>20</td>\n",
       "      <td>68</td>\n",
       "      <td>165</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-11-28 13:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>11282012</td>\n",
       "      <td>1330</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>41</td>\n",
       "      <td>69</td>\n",
       "      <td>170</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-10-17 20:35:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>10172012</td>\n",
       "      <td>2035</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>27</td>\n",
       "      <td>72</td>\n",
       "      <td>185</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-11-07 22:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>11072012</td>\n",
       "      <td>2230</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>20</td>\n",
       "      <td>71</td>\n",
       "      <td>190</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-11-07 22:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>11072012</td>\n",
       "      <td>2230</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>21</td>\n",
       "      <td>73</td>\n",
       "      <td>170</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-11-28 22:15:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>11282012</td>\n",
       "      <td>2215</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>20</td>\n",
       "      <td>69</td>\n",
       "      <td>150</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-05 10:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>12052012</td>\n",
       "      <td>1000</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>17</td>\n",
       "      <td>68</td>\n",
       "      <td>155</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-05 10:00:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>12052012</td>\n",
       "      <td>1000</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>16</td>\n",
       "      <td>71</td>\n",
       "      <td>150</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-12 08:10:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>12122012</td>\n",
       "      <td>810</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>31</td>\n",
       "      <td>68</td>\n",
       "      <td>160</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-05 15:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>12052012</td>\n",
       "      <td>1530</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>26</td>\n",
       "      <td>66</td>\n",
       "      <td>145</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-05 14:03:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>12052012</td>\n",
       "      <td>1403</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>16</td>\n",
       "      <td>65</td>\n",
       "      <td>155</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-11-28 00:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>11282012</td>\n",
       "      <td>30</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>24</td>\n",
       "      <td>63</td>\n",
       "      <td>125</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-05 14:03:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>12052012</td>\n",
       "      <td>1403</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>18</td>\n",
       "      <td>70</td>\n",
       "      <td>180</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-05 15:04:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>12052012</td>\n",
       "      <td>1504</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>6.0</td>\n",
       "      <td>22</td>\n",
       "      <td>70</td>\n",
       "      <td>205</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-12 13:02:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>12122012</td>\n",
       "      <td>1302</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>40</td>\n",
       "      <td>70</td>\n",
       "      <td>210</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-10-17 21:15:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>10172012</td>\n",
       "      <td>2115</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>26</td>\n",
       "      <td>70</td>\n",
       "      <td>200</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-10-17 21:15:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>10172012</td>\n",
       "      <td>2115</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>25</td>\n",
       "      <td>59</td>\n",
       "      <td>160</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-10-24 18:05:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>10242012</td>\n",
       "      <td>1805</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>21</td>\n",
       "      <td>69</td>\n",
       "      <td>165</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-11-28 19:45:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>11282012</td>\n",
       "      <td>1945</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>43</td>\n",
       "      <td>71</td>\n",
       "      <td>200</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-11-28 22:15:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>11282012</td>\n",
       "      <td>2215</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>19</td>\n",
       "      <td>66</td>\n",
       "      <td>140</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-11-28 22:15:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>11282012</td>\n",
       "      <td>2215</td>\n",
       "      <td>5.0</td>\n",
       "      <td>1.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>17</td>\n",
       "      <td>62</td>\n",
       "      <td>100</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-11-28 23:30:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>11282012</td>\n",
       "      <td>2330</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>24</td>\n",
       "      <td>66</td>\n",
       "      <td>190</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-12 11:40:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>12122012</td>\n",
       "      <td>1140</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>28</td>\n",
       "      <td>70</td>\n",
       "      <td>160</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2012-12-19 00:20:00</th>\n",
       "      <td>2012</td>\n",
       "      <td>12192012</td>\n",
       "      <td>20</td>\n",
       "      <td>5.0</td>\n",
       "      <td>2.0</td>\n",
       "      <td>4.0</td>\n",
       "      <td>36</td>\n",
       "      <td>64</td>\n",
       "      <td>160</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>80480 rows × 12 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                     year  datestop    ...     searched  arstmade\n",
       "2012-11-07 00:30:00  2012   1172012    ...            0         0\n",
       "2012-11-07 18:50:00  2012   1172012    ...            0         0\n",
       "2012-11-07 20:50:00  2012   1172012    ...            0         0\n",
       "2012-11-07 21:00:00  2012   1172012    ...            0         0\n",
       "2012-11-07 21:45:00  2012   1172012    ...            0         0\n",
       "2012-11-07 22:15:00  2012   1172012    ...            0         0\n",
       "2012-12-05 13:28:00  2012   1252012    ...            0         0\n",
       "2012-12-05 16:50:00  2012   1252012    ...            0         0\n",
       "2012-12-05 19:35:00  2012   1252012    ...            0         0\n",
       "2012-12-05 20:55:00  2012   1252012    ...            0         0\n",
       "2012-12-05 21:30:00  2012   1252012    ...            0         0\n",
       "2012-12-05 23:15:00  2012   1252012    ...            0         0\n",
       "2012-02-01 13:00:00  2012   2012012    ...            0         0\n",
       "2012-02-01 15:40:00  2012   2012012    ...            0         0\n",
       "2012-02-01 17:05:00  2012   2012012    ...            0         0\n",
       "2012-02-01 17:40:00  2012   2012012    ...            1         0\n",
       "2012-02-01 18:40:00  2012   2012012    ...            0         0\n",
       "2012-02-01 21:10:00  2012   2012012    ...            0         0\n",
       "2012-02-08 12:20:00  2012   2082012    ...            0         0\n",
       "2012-02-08 13:30:00  2012   2082012    ...            0         0\n",
       "2012-02-08 15:01:00  2012   2082012    ...            0         0\n",
       "2012-02-08 16:50:00  2012   2082012    ...            0         0\n",
       "2012-02-08 19:00:00  2012   2082012    ...            1         0\n",
       "2012-02-08 21:00:00  2012   2082012    ...            0         0\n",
       "2012-02-15 15:45:00  2012   2152012    ...            1         0\n",
       "2012-02-15 22:41:00  2012   2152012    ...            0         0\n",
       "2012-02-15 23:20:00  2012   2152012    ...            0         0\n",
       "2012-02-22 10:05:00  2012   2222012    ...            0         0\n",
       "2012-02-22 14:30:00  2012   2222012    ...            0         0\n",
       "2012-02-29 23:00:00  2012   2292012    ...            0         0\n",
       "...                   ...       ...    ...          ...       ...\n",
       "2012-10-24 21:45:00  2012  10242012    ...            0         0\n",
       "2012-10-24 00:50:00  2012  10242012    ...            0         0\n",
       "2012-11-07 10:25:00  2012  11072012    ...            1         0\n",
       "2012-11-07 10:25:00  2012  11072012    ...            0         0\n",
       "2012-10-17 20:35:00  2012  10172012    ...            0         0\n",
       "2012-10-17 22:45:00  2012  10172012    ...            0         0\n",
       "2012-11-14 01:20:00  2012  11142012    ...            0         0\n",
       "2012-11-28 13:30:00  2012  11282012    ...            0         0\n",
       "2012-10-17 20:35:00  2012  10172012    ...            0         0\n",
       "2012-11-07 22:30:00  2012  11072012    ...            0         0\n",
       "2012-11-07 22:30:00  2012  11072012    ...            0         0\n",
       "2012-11-28 22:15:00  2012  11282012    ...            0         0\n",
       "2012-12-05 10:00:00  2012  12052012    ...            0         0\n",
       "2012-12-05 10:00:00  2012  12052012    ...            0         0\n",
       "2012-12-12 08:10:00  2012  12122012    ...            0         1\n",
       "2012-12-05 15:30:00  2012  12052012    ...            0         0\n",
       "2012-12-05 14:03:00  2012  12052012    ...            0         0\n",
       "2012-11-28 00:30:00  2012  11282012    ...            0         0\n",
       "2012-12-05 14:03:00  2012  12052012    ...            0         0\n",
       "2012-12-05 15:04:00  2012  12052012    ...            0         0\n",
       "2012-12-12 13:02:00  2012  12122012    ...            0         0\n",
       "2012-10-17 21:15:00  2012  10172012    ...            0         0\n",
       "2012-10-17 21:15:00  2012  10172012    ...            0         0\n",
       "2012-10-24 18:05:00  2012  10242012    ...            0         0\n",
       "2012-11-28 19:45:00  2012  11282012    ...            0         0\n",
       "2012-11-28 22:15:00  2012  11282012    ...            0         0\n",
       "2012-11-28 22:15:00  2012  11282012    ...            0         0\n",
       "2012-11-28 23:30:00  2012  11282012    ...            0         0\n",
       "2012-12-12 11:40:00  2012  12122012    ...            0         0\n",
       "2012-12-19 00:20:00  2012  12192012    ...            1         1\n",
       "\n",
       "[80480 rows x 12 columns]"
      ]
     },
     "execution_count": 55,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Property\tDescription\n",
    "# year\tThe year of the datetime\n",
    "# month\tThe month of the datetime\n",
    "# day\tThe days of the datetime\n",
    "# hour\tThe hour of the datetime\n",
    "# minute\tThe minutes of the datetime\n",
    "# second\tThe seconds of the datetime\n",
    "# microsecond\tThe microseconds of the datetime\n",
    "# nanosecond\tThe nanoseconds of the datetime\n",
    "# date\tReturns datetime.date\n",
    "# time\tReturns datetime.time\n",
    "# dayofyear\tThe ordinal day of year\n",
    "# weekofyear\tThe week ordinal of the year\n",
    "# week\tThe week ordinal of the year\n",
    "# dayofweek\tThe day of the week with Monday=0, Sunday=6\n",
    "# weekday\tThe day of the week with Monday=0, Sunday=6\n",
    "# quarter\tQuarter of the date: Jan=Mar = 1, Apr-Jun = 2, etc.\n",
    "# is_month_start\tLogical indicating if first day of month (defined by frequency)\n",
    "# is_month_end\tLogical indicating if last day of month (defined by frequency)\n",
    "# is_quarter_start\tLogical indicating if first day of quarter (defined by frequency)\n",
    "# is_quarter_end\tLogical indicating if last day of quarter (defined by frequency)\n",
    "# is_year_start\tLogical indicating if first day of year (defined by frequency)\n",
    "# is_year_end\tLogical indicating if last day of year (defined by frequency)\n",
    "\n",
    "df[df.index.dayofweek==2]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "year        0.599458\n",
       "datestop    0.599458\n",
       "timestop    0.599458\n",
       "city        0.599458\n",
       "sex         0.600127\n",
       "race        0.600919\n",
       "age         0.599458\n",
       "height      0.599458\n",
       "weight      0.599458\n",
       "frisked     0.599458\n",
       "searched    0.599458\n",
       "arstmade    0.599458\n",
       "dtype: float64"
      ]
     },
     "execution_count": 58,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# another fun example\n",
    "df[(df.index.hour<8) & (df.frisked==1)].count() / df[(df.index.hour<8)].count()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x1159c3ba8>"
      ]
     },
     "execution_count": 59,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGg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\n6VZY1GyfGZirfcHc6c05FpKkuWiuXpRwrvY1Z3ozWEiS5qLJixJOZVgXJZyrfcEc6c05FpKkuWiu\nXpRwrvYFc6Q351hIkqTO+FaIJEnqjMFCkiR1xmAhSZI6Y7CQJEmdMVhIkqTOGCwkSVJnDBaSJKkz\nBgtJktSZ/x+GSBM8XGNN2wAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x121908908>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "%matplotlib inline\n",
    "df['month'] = df.index.month\n",
    "mcounts = df['month'].value_counts()\n",
    "mcounts.sort_index().plot(kind='bar')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x128207940>"
      ]
     },
     "execution_count": 60,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAgAAAAFoCAYAAAAhN0NQAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAAPYQAAD2EBqD+naQAAGtRJREFUeJzt3X+UX3V95/HnOwGNaJ2lG5vAFqRUpahbZEZ6oOBaSjG4\nLZ6iLjDInhRaW1o80qnHunsWF6Fr2aIQFzUWf7SBBabG7nZFT7dBUHQVs0jG0K0GUAzEHyQkUmMx\nQULy3j/uHZlM5zsz98535vtNPs/HOd+TuZ97P9/7Pt+ZfL+v7+d+7r2RmUiSpLIs6nUBkiRp4RkA\nJEkqkAFAkqQCGQAkSSqQAUCSpAIZACRJKpABQJKkAhkAJEkqkAFAkqQCGQAkSSpQqwAQEZdGxOaI\n2B0R6yPipBm2f1ZEvDsiHo6IJyPiWxHxW60qliRJc3ZI0w4RcR5wLfC7wD3ACLAuIl6SmTs6dPsE\n8ALgIuAh4AgcfZAkqWei6c2AImI98H8z87J6OYBvA9dn5jVTbH8WcCtwb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eXOH9YcDr8vMGxe2MoiIPwNekZkrplh3CPA/gLPrw9bzV4cBQJI0VxHx\nc0w4DTB7cArsgaL+kD9sqrkTE9b/q06jF91yME4ClCQtsMzcnJlfrh/jF6E6KiIW/HoTs9HL2jLz\n6U4f/rUjqA5LzStHACRJ86JXF16bDWs7OCcBSpIWQES8boZNjl2QQqZgbbOowxEASVIbEy7tPN1s\n+uzFt2xrm5lzACRJbfXrhdesbRYMAJKktsYvvNZJry68BtY2I+cASJLa6tcLr4G1zcg5AJIkFchD\nAJIkFcgAIElSgQwAkiQVyAAgSVKBDACSJBXIACBJUoEMAJIkFcgAIElSgf4/TyhIk3wceEgAAAAA\nSUVORK5CYII=\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x128211780>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "df_frisked = df[df.frisked>0]\n",
    "mprct = df_frisked['month'].value_counts() / df['month'].value_counts()\n",
    "mprct.sort_index().plot(kind='bar')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "anaconda-cloud": {},
  "kernelspec": {
   "display_name": "Python [MLEnv]",
   "language": "python",
   "name": "Python [MLEnv]"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.5.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}
